home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_apache.idb / etc / init.d / apache.z / apache
Encoding:
Text File  |  1999-07-16  |  756 b   |  37 lines

  1. #!/bin/sh
  2. # $Id$
  3. #
  4. # Start and stop the SGI Freeware Apache httpd
  5. # See /usr/freeware/apache/etc for configuration, etc.
  6.  
  7. IS_ON=/etc/chkconfig
  8. httpd_dir=/usr/freeware/apache
  9. apachectl=$httpd_dir/sbin/apachectl
  10.  
  11. if $IS_ON verbose ; then
  12.             ECHO=echo
  13.         else            # For a quiet startup and shutdown
  14.             ECHO=:
  15.         fi
  16.  
  17. case "$1" in
  18. 'start')
  19.         if ${IS_ON} apache && test -x $apachectl; then
  20.                 echo "Starting SGI Freeware Apache httpd"
  21.                 $apachectl start
  22.         fi
  23.         ;;
  24.  
  25. 'stop')
  26.         if test -x $apachectl; then
  27.                 echo "Stopping SGI Freeware Apache httpd"
  28.                 $apachectl stop
  29.         fi
  30.         ;;
  31.  
  32. *)
  33.         echo "usage: $0 {start|stop}"
  34.         ;;
  35. esac
  36.